home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <installer-gui-script minSpecVersion='1'>
-
- <!-- Automatically generated by update2dist -->
-
- <!-- Installer meta-data -->
- <choices-outline>
- <line choice='manual'/>
- </choices-outline>
-
- <title>QuickTime</title>
- <choice id='manual' title="QuickTime">
- <pkg-ref id='manual' auth='Root' onConclusion='RequireRestart'>.</pkg-ref>
- </choice>
- <choice id='manual' title='MANUAL_TITLE'/>
- <choice id='manual' versStr='SU_VERS' />
- <welcome file="Welcome.rtf"/>
- <readme file="ReadMe.rtfd"/>
- <license file="License.rtf"/>
-
- <options customize = 'never'
- />
-
- <background file="background.tif" scaling="none" alignment="bottomleft"></background>
- <!-- Software Update meta-data -->
- <choices-outline ui='SoftwareUpdate'>
- <line choice='su'/>
- </choices-outline>
-
- <choice id='su' suDisabledGroupID='QuickTime'>
- <pkg-ref id='auto' onConclusion='RequireRestart'>QuickTime704.pkg</pkg-ref>
- </choice>
- <choice id='su' visible='VisibleCheck()' />
- <choice id='su' title='SU_TITLE' versStr='SU_VERSION' />
- <choice id='su' description='SU_DESCRIPTION' description-mime-type='text/html' />
-
-
- <installation-check script="InstallationCheck()" />
- <volume-check script="VolumeCheck()" />
-
- <script>
- function InstallationCheck()
- {
- // note: my.target isn't defined under installation-check
- if (true)
- return true;
-
- if (my.result)
- {
- //my.result.message = 'message'; // XXX
- my.result.type = 'Fatal';
- }
- return false;
- }
-
- function VolumeCheck()
- {
-
- if(my.target.mountpoint != '/'){
- my.result.message = system.localizedString('BOOT_VOLUME_ERR');
- my.result.type = 'Fatal';
- return false;
- }
- if (newerQuickTimePresent()) {
- my.result.type = 'Fatal';
- my.result.message = system.localizedStringWithFormat('isDowngrade');
- return false;
- }
- if (!noAppleTier3Language()) {
- my.result.type = 'Fatal';
- my.result.message = system.localizedStringWithFormat('volumeHasTier3');
- return false;
- }
- return true;
- }
-
-
- function VisibleCheck()
- {
- return(noAppleTier3Language() && notAlreadyInstalled());
- }
-
-
-
- function noAppleTier3Language()
- {
-
- var path = my.target.mountpoint + "/var/db/.AppleTier3Language";
- if (!system.files.fileExistsAtPath(path))
- return true;
-
- return false;
- }
-
- function newerQuickTimePresent()
- {
- var path = my.target.mountpoint + "/System/Library/Frameworks/QuickTime.framework";
- var bundle = system.files.bundleAtPath(path);
- var version = BundleGetCompositeVersion5(bundle);
- if (version && (system.compareVersions(version, "7.0.4.999999999.999999999") < 1)) {
- return false;
- }
- return true;
- }
- function notAlreadyInstalled()
- {
- var path = my.target.mountpoint + "/System/Library/Frameworks/QuickTime.framework";
- var bundle = system.files.bundleAtPath(path);
- var version = BundleGetCompositeVersion5(bundle);
- if (version && (system.compareVersions(version, "7.0.4.0.0") < 1)) {
- return true;
- }
- return false;
- }
-
- </script>
-
- <!-- Common include -->
- <script>
- function _PadVersionString(version, tupleCount)
- {
- if (version == null)
- version = "0";
- var components = version.split(".");
- if (components.length > tupleCount)
- components = components.slice(0, tupleCount);
- else
- for (; components.length<tupleCount; )
- components.push("0");
- return components.join(".");
- }
-
- function BundleGetCompositeVersion5(bundle)
- {
- if (bundle == null)
- return null;
- var shortVers = bundle.CFBundleShortVersionString;
- shortVers = _PadVersionString(shortVers, 3);
- var sourceVers = bundle.SourceVersion;
- sourceVers = _PadVersionString(sourceVers, 1);
- var buildVers = bundle.BuildVersion;
- buildVers = _PadVersionString(buildVers, 1);
- var fiveTupleVers = shortVers + "." + sourceVers + "." + buildVers;
- return fiveTupleVers;
- }
-
- </script>
-
-
-
-
- <pkg-ref id='auto' installKBytes='124404' version='7.0.4.1150000.359'/>
- <pkg-ref id='manual' installKBytes='124404' version='7.0.4.1150000.359'/>
- </installer-gui-script>
-